import { EventTarget } from "cc";
import { Entity } from "./entity/Entity";

export const TILE_WIDTH = 55;
export const TILE_HEIGHT = 55;

export const PREFAB_MAP = {
    [Entity.Type.PLAYER]: "prefab/Player",
    [Entity.Type.SKELETON_WOODEN]: "prefab/WoodenSkeleton",
    [Entity.Type.SKELETON_IRON]: "prefab/IronSkeleton",
    [Entity.Type.DOOR]: "prefab/Door",
    [Entity.Type.BURST]: "prefab/Burst",
    [Entity.Type.SPIKES]: "prefab/Spikes",
    [Entity.Type.SMOKE]: "prefab/Smoke"
};

export const SCENE_NAME = {
    START: "StartScene",
    BATTLE: "BattleScene"
}


export const eventDispatcher = new EventTarget();